import { defineConfig } from 'umi';
import { MP_ROUTES } from './mpRoutes'
export default defineConfig({
  routes: [
    { path: '/', component: '@/pages/index' },
    {
      path: '/mp',
      component: '@/layouts/indexLayout',
      routes: MP_ROUTES
    },
  ],
  proxy: {
    '/api/v1': {
      'target': 'http://127.0.0.1:8083/',
      'changeOrigin': true,
      'pathRewrite': { '^/api/v1': '' },
    },
  },
});
